package com.library.entity;

public class Book {
    private Long id;
    private String isbn;
    private String title;
    private String author;
    private String publisher;
    private String category;
    private int totalCopies;
    private  int availableCopies;

    public Book() {}

    public Book(Long id, String isbn, String title, String author, String publisher, String category, int totalCopies, int availableCopies) {
        this.id = id;
        this.isbn = isbn;
        this.title = title;
        this.author = author;
        this.publisher = publisher;
        this.category = category;
        this.totalCopies = totalCopies;
        this.availableCopies = availableCopies;
    }

    public Long getId(){return id;}
    public void setId(Long id){this.id = id;}

    public String getIsbn(){return isbn;}
    public void setIsbn(String isbn){this.isbn = isbn;}

    public String getTitle(){return title;}
    public void setTitle(String title){this.title = title;}

    public String getAuthor(){return author;}
    public void setAuthor(String author){this.author = author;}

    public String getPublisher(){return publisher;}
    public void setPublisher(String publisher){this.publisher = publisher;}

    public String getCategory(){return category;}
    public void setCategory(String category){this.category = category;}

    public int getTotalCopies(){return totalCopies;}
    public void setTotalCopies(int totalCopies){this.totalCopies = totalCopies;}

    public int getAvailableCopies(){return availableCopies;}
    public void setAvailableCopies(int availableCopies){this.availableCopies = availableCopies;}
}
